Skip to content

refactor(personality): support split decision scenarios, read-only bio badge provider, and Core shared helpers - #25

Merged
mcocdaa merged 1 commit into
mainfrom
refactor/generic-separation-live-fixes
Nov 21, 2026
Merged

mcocdaa merged 1 commit into
mainfrom
refactor/generic-separation-live-fixes

Conversation

@mcocdaa

@mcocdaa mcocdaa commented Nov 21, 2026

Copy link
Copy Markdown
Collaborator

Adds AgentDecision/AdvisorDecision context scenario support, TickStagger, and clean label formatting; migrates bio tab badge onto read-only Core IBioTabBadgeProvider; adopts CollectRetainedColonyPawnIds, WorldScopedComponentCache, RimMindAPI.Json, and SettingsUIDrawer. Verified with 13/13 tests.

…o badge provider, and Core shared helpers

refactor: migrate personality mod to Core APIs and remove duplicated helpers

Replace mod-local implementations with shared Core APIs across the
personality module:

- Use RimMindAPI.Json for response parsing (thinking blocks, code
  fences, truncation repair) instead of direct Newtonsoft calls
- Use RimMindAPI.Text.TrOr for translations instead of repeated
  CanTranslate/Translate fallback blocks
- Delegate profile retention to RimMindPawnLookup.CollectRetainedColonyPawnIds
  and instance caching to WorldScopedComponentCache
- Replace BioTab Harmony transpiler with IBioTabBadgeProvider registration
- Use SettingsUIDrawer.DrawScrollableSettingsPage for the settings tab
- Use TickStagger.PhaseOffset for daily jitter instead of System.Random
- Add coalesce key and max queue wait to personality request envelope
- Extend personality context policy to split decision/dialogue scenarios
- Deprecate PawnResolver in favor of RimMindPawnLookup.FindPawnByNumber
- Adjust default trigger chances and add contract tests for new behavior
@mcocdaa
mcocdaa merged commit 77088c1 into main Nov 21, 2026
@mcocdaa
mcocdaa deleted the refactor/generic-separation-live-fixes branch November 21, 2026 10:42
@coderabbitai

coderabbitai Bot commented Nov 21, 2026

Copy link
Copy Markdown

Important

  • Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

Run configuration

  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant